<template>
	<!-- 课程收益 -->
	<div class="co_wallet_curriculum">
		<div class="co_wcu_box" v-for="(item,index) in setData" :key='index'>
			<div class="co_wcu_l">
				<div><p>tit不同身型如何选对半裙，俏皮减龄还能凹出好身材不同身型如何选对半裙，俏皮减龄还能凹出好身材le</p></div>
				<div>2018-10-15 12:55:25</div>
			</div>
			<div class="co_wcu_r">
				<div>+¥50</div>
				<div>购买人：凝萱</div>
			</div>
		</div>
		<kong :type='co_kong'></kong>
	</div>
</template>

<script>
import {
  shop_log
} from '@/api/center'
import {
  mapState
} from 'vuex'
import kong from '@/components/public/kong.vue'
export default {
  components: {
    kong
  },
  computed: {
    ...mapState({
      app_id: state => state.app_id,
      user_id: state => state.member_id
    })
  },
  data () {
    return {
      setData: [],
      co_kong: '课程收益'
    }
  },
  created () {
    this.$store.commit('updateLoadingStatus', {isLoading: false})
    this.getData()
  },
  methods: {
    getData () {
      // 课程收益接口
    }
  }
}
</script>

<style>
	.co_wcu_box{
		display: flex;
		width: 100%;
		padding: 0 20px;
		border-bottom: 1px solid #EEEEEE;
		height: 84px;
	}
	.co_wcu_l{
		flex: 3;
		position: relative;
	}
	.co_wcu_l>div:nth-child(1){
		font-size: 15px;
		color: #1a1a1a;
		font-weight: bold;
		margin-top: 10px;
	}
	.co_wcu_l>div:nth-child(1) p{
		text-overflow: ellipsis;
		display: -webkit-box;
		/* -webkit-box-orient: vertical; */
		/*! autoprefixer: off */
		-webkit-box-orient: vertical;
		/* autoprefixer: on */
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
	.co_wcu_l>div:nth-child(2){
		position: absolute;
		left: 0;
		bottom: 10px;
		font-size: 14px;
		color: #9e9e9e;
	}
	.co_wcu_r{
		flex: 1;
		text-align: right;
		position: relative;
	}
	.co_wcu_r>div:nth-child(1){
		font-size: 24px;
		color: #fd5e5e;
		font-weight: bold;
		margin-top: 12px;
	}
	.co_wcu_r>div:nth-child(2){
		font-size: 12px;
		color: #9e9e9e;
		position: absolute;
		left: 0;
		bottom: 10px;
		width: 100%;
	}
</style>
